import request from '@/utils/request'

//统一字典下拉框查询
export function adminDict(params) {
  return request({
    url: `common/v1/adminDict`,
    method: 'get',
    params
  })
}

// 查询评价列表
export function getList(query) {
  return request({
    url: '/order/evaluate/list',
    method: 'get',
    params: query
  })
}


//获取下拉商品卡列表
export function getSelectCardList() {
    return request({
      url: '/order/evaluate/getSelectCardList',
      method: 'get',
    })
}
//获取配置审核天数
export function getConfigureDays() {
    return request({
      url: '/order/evaluate/getConfigureDays',
      method: 'get',
    })
}
//修改配置审核天数
export function changeConfigureDays(data) {
    return request({
      url: '/order/evaluate/changeConfigureDays',
      method: 'put',
      data
    })
  }
//新增评价
export function addEvaluate(data) {
    return request({
      url: '/order/evaluate',
      method: 'post',
      data
    })
}

//编辑商家数字权益卡
export function editCard(data) {
    return request({
      url: '/merchant/lucrative/equity/card',
      method: 'put',
      data
    })
}
//获取审核弹窗信息
export function examineEvaluate(id) {
    return request({
      url: '/order/evaluate/examineEvaluate/'+id,
      method: 'get',
    })
}
//审核评价
export function evaluateExamine(data) {
    return request({
      url: '/order/evaluate/examine',
      method: 'put',
      data
    })
}
//删除评价
export function delEvaluate(id) {
    return request({
      url: '/order/evaluate/delEvaluate/'+id,
      method: 'DELETE',
    })
}
//修改显示隐藏状态
export function changeShow(data) {
    return request({
      url: '/order/evaluate/changeShow',
      method: 'put',
      data
    })
}